package com.seven.alert.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.lang.Nullable;

import javax.activation.FileTypeMap;
import javax.mail.Session;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;

@Data
@ConfigurationProperties(
        prefix = "alert.mail"
)
public class Mail {
    private String host;
    private Integer port;
    private String username;
    private String password;
    private String protocol = "smtp";
    private Charset defaultEncoding = StandardCharsets.UTF_8;
    private Map<String, String> properties = new HashMap<>();
    private String jndiName;
    private String form;
}